class CreateSessionHashes < ActiveRecord::Migration
  def self.up
    create_table :session_hashes do |t|
      t.string :token
      t.integer :user_id
      t.timestamps
    end
    
    add_index :session_hashes, :token
    add_index :session_hashes, :user_id
  end

  def self.down
    drop_table :session_hashes
  end
end
